package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsAudit;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsAuditExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsAuditMapper {
    long countByExample(DirectMailGoodsAuditExample example);

    int deleteByExample(DirectMailGoodsAuditExample example);

    int deleteByPrimaryKey(Integer auditId);

    int insert(DirectMailGoodsAudit record);

    int insertSelective(@Param("record") DirectMailGoodsAudit record, @Param("selective") DirectMailGoodsAudit.Column ... selective);

    DirectMailGoodsAudit selectOneByExample(DirectMailGoodsAuditExample example);

    List<DirectMailGoodsAudit> selectByExample(DirectMailGoodsAuditExample example);

    DirectMailGoodsAudit selectByPrimaryKey(Integer auditId);

    DirectMailGoodsAudit selectByPrimaryKeyWithLogicalDelete(@Param("auditId") Integer auditId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsAudit record, @Param("example") DirectMailGoodsAuditExample example, @Param("selective") DirectMailGoodsAudit.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsAudit record, @Param("example") DirectMailGoodsAuditExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsAudit record, @Param("selective") DirectMailGoodsAudit.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsAudit record);

    int batchInsert(@Param("list") List<DirectMailGoodsAudit> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsAudit> list, @Param("selective") DirectMailGoodsAudit.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsAuditExample example);

    int logicalDeleteByPrimaryKey(Integer auditId);
}